package com.bytedance.video.mapper;

import com.bytedance.video.pojo.User;
import com.bytedance.video.pojo.UserFavorite;
import com.bytedance.video.pojo.Video;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface VideoMapper {

    public Integer insertVideoInfo(Video video);

    public List<Video> selectAllVideo();

    public User selectUserById(@Param("userId") Long userId);

    public List<Video> selectVideoByUserId(@Param("userId") Long userId);

    public Long selectVideoCommentCount(@Param("videoId") Long videoId);

    public void updateUserWorkCount(@Param("userId") Long userId, @Param("workCount") Long workCount);


}
